﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Shop.Data;
using Shop.Resources;

namespace Shop.AllForms
{
    public partial class ShowAllProducts : Form
    {
        public ShowAllProducts()
        {
            InitializeComponent();
            dataGridViewAllProducts.DataSource = ShopData.GetAllProducts();
        }

        private void buttonClose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void buttonExport_Click(object sender, EventArgs e)
        {
            this.dataGridViewAllProducts.ExportToExcel();
        }
    }
}
